package com.atguigu.day11.exer.e4;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/12 17:02
 * @注释
 */
public class Test {
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle(3,6);
        Triangle triangle = new Triangle(3,4,5);
        Circle circle = new Circle(2.0);
        GraphicTools.compare(rectangle,triangle);
        GraphicTools.equals(rectangle,triangle);

        Graphic[] g1 = {rectangle,triangle,circle};
        GraphicTools.print("排序前",g1);
        GraphicTools.sort(g1);
        GraphicTools.print("排序后",g1);

    }
}
